import bb.cascades 1.0

Page {
    property variant item
    Container {

        layout: DockLayout {
        }
        Container {
            leftPadding: 60
            rightPadding: leftPadding
            horizontalAlignment: HorizontalAlignment.Left
            verticalAlignment: VerticalAlignment.Top

            layout: StackLayout {
                orientation: LayoutOrientation.TopToBottom

            }

            Header {
                title: item['infoText']
                subtitle: item['desc']
            }
            ListView {
                dataModel: XmlDataModel {
                    source: "models/questions.xml"
                }
                listItemComponents: [
                    ListItemComponent {
                        type: "question"
                        Label {
                            multiline: true
                            text: ListItemData.text
                        }
                    },
                    ListItemComponent {
                        type: "answer"
                        CheckBox {
                            text: ListItemData.text
                        }
                    }
                ]

            }

        }
    }
}
